package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"gopkg.in/ffmt.v1"
	"zsgGin/interfaces"
	"zsgGin/route"
	"zsgGin/utils/socket"
)

func main() {
	//对象
	cat:=interfaces.NewCat("320921")
	socket.ObjectTest(cat)

	r:=gin.Default()
	route.RoutingGroup(r)
	fmt.Println("\a")
	err:=r.Run(":1218")
	if err!=nil{
		ffmt.Puts("启动失败,原因:"+err.Error())
	}
}
